package com.kmzx.one.project.mapper;

import com.kmzx.one.project.entity.ProductSelf;
import com.kmzx.one.project.others.dso.ProductSelfJoinSKU;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Project one
 * @Author: carol
 * @Date: 2020/7/9-15:59
 */
@Component
public interface ProductSelfMapper {

    ProductSelf selectById(@Param("id") String id);

    List<ProductSelf> selectByProdId(@Param("prodId") String prodId);

    List<ProductSelf> selectByProdIdHas(@Param("prodId") String prodId);

    List<ProductSelf> selectByProdIdHas2(@Param("prodId") String prodId, @Param("isGift") Integer isGift);

    List<ProductSelfJoinSKU> selectProductSelfJoinSKU(@Param("prodId") String prodId);

    ProductSelfJoinSKU selectProductSelfJoinSKUOne(@Param("prodId") String prodId);

    ProductSelfJoinSKU selectProdSelfJoinSKUSingle(@Param("skuId") String skuId);
}
